﻿using Nemerle.Linq; 

using System;
using System.Linq;


class NLinq
{
  public DoLinq() : void
  {
    mutable collection = Enumerable.Range(0, 10);
    collection = linq <# 
      from e in collection where e % 2 == 1 select e * e 
    #>;
    
    foreach (e in collection)
      Console.WriteLine(e);
  }
}